{{ define "content" }}

<div class="panel panel-default">
    <div class="panel-heading">
        <span class="lead"> <i class="fa fa-comment-o"></i> {{ .Topic }}</span>
        <div class="pull-right">
            Started by {{ .GetUser.Name }} - {{ .CreatedAtDate }}
        </div>

    </div>

{{ range .GetPosts }}
    <div class="panel-body">
        <span class="lead"> <i class="fa fa-comment"></i> {{ .Body }}</span>
        <div class="pull-right">
        {{ .GetUser.Name }} - {{ .CreatedAtDate }}
        </div>
    </div>
{{ end }}

</div>

{{ end }}